﻿@* 应用服务测试 *@
@using Util.Generators.Helpers
@model Util.Generators.Contexts.EntityContext
@{
    var service = new GenerateService( Model );
    var entity = service.EntityName;
    var applicationServiceTest = $"{entity}ServiceTest";
    Model.Output.FileNameNoExtension = applicationServiceTest;
    Model.Output.Extension = ".cs";
    Model.Output.RelativeRootPath = $"test/{service.GetApplicationTestProjectPath("Services",true)}";
}
@if ( service.IsTreeEntity() ) {
    @Html.PartialAsync( "~/Templates/test/Application.Test/ApplicationServiceTest/TreeServiceTest.Part.cshtml",Model )
}
else {
    @Html.PartialAsync( "~/Templates/test/Application.Test/ApplicationServiceTest/ServiceTest.Part.cshtml",Model )
}